package com.xinou.daily_report.service;

import com.xinou.common.base.config.ApiResponse;
import com.xinou.daily_report.PO.IntegralPO;
import com.xinou.daily_report.PO.daily.DailyScoreAddPO;
import com.xinou.daily_report.VO.integral.IntegralVO;
import com.xinou.daily_report.VO.integral.IntegralCountVO;
import com.xinou.daily_report.VO.integral.IntegralListVO;
import com.xinou.daily_report.entity.SysIntegral;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-25
 */
public interface SysIntegralService extends IService<SysIntegral> {

    ApiResponse<IntegralListVO> integralList(IntegralPO integralPO);

    ApiResponse<IntegralCountVO> integralCount(IntegralPO integralPO);

    ApiResponse<Void> integralSave(IntegralPO integralPO);


    ApiResponse<IntegralVO> integralGetById(IntegralPO integralPO);


    ApiResponse<IntegralVO> integralPersonalRank(IntegralPO integralPO);

    ApiResponse<IntegralVO> integralTeamRank(IntegralPO integralPO);

    /**
     * 给日报加分
     * @param po
     * @return
     */
    ApiResponse<Void> integralDailyScoreAdd(DailyScoreAddPO po);

}
